<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<link rel="shortcut icon" href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/img/logo.png"/>
	<title>优惠券</title>
	<script src="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/frame/mui/js/mui.min.js"></script>
	<link href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/frame/mui/css/mui.min.css" rel="stylesheet" />
	<link href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/css/other/all.css" rel="stylesheet" />
	<link href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/css/other/app.css?v=0" rel="stylesheet" />
	<link href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/font/iconfont.css?v=0" rel="stylesheet" />
</head>
<style type="text/css">
	body{
		background: #f4f4f4;
	}
	.nocoupon{height: calc(100vh - 60px);background: url('/static/wechat/img/nocoupon.png') no-repeat;background-size: 70%;background-position: center;}
</style>
<body>
<div class="coupon">
	{{if .info}}
	<ul>
		{{range .info}}
		<li>
			<div class="price">
				<p>满{{.full}}减<span>{{.offer}}</span></p>
				<span>优惠券</span>
			</div>
			<div>
				<p>{{if .gname}}{{.gname}}{{else}}{{$.system.name}}{{end}}</p>
				<span>{{.starttime}} - {{.endtime}}</span>
			</div>
			<p>{{.name}}</p>
		</li>
		{{end}}
	</ul>
	{{else}}
	<div class="nocoupon"></div>
	{{end}}
</div>
<script src="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/js/other/app.js"></script>
<div class="mt-statistics">统计代码</div>
{{template "wechat/public/share.html" .}}
</body>
</html>
